package java46_oo4;

import java.util.Scanner;

public class Test2 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		System.out.println("请输入姓名:");
		String name = sc.next();
		System.out.println("java成绩：");
		double java = sc.nextDouble();
		System.out.println("c#成绩：");
		double csharp = sc.nextDouble();
		System.out.println("db成绩：");
		double db = sc.nextDouble();
		System.out.println("在计算过程中：java:" + java + ",db=" + db + ",csharp:"
				+ csharp);

		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>计算平均分：");
		ScoreStat ss = new ScoreStat();
		double avg = ss.getAvg2(java, db, csharp);
		System.out.println(name + "平均分是" + avg);
		System.out.println("计算后：");
		System.out.println("在计算过程中：java:" + java + ",db=" + db + ",csharp:"
				+ csharp);

	}

}
